/**
 * 
 */
package com.lanswon.dao;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.data.repository.query.Param;

import com.lanswon.entity.UserAuthsVO;

/**
 * @author lanswon
 *
 */
public interface UserAuthsMapper {


    int deleteByPrimaryKey(Long listId);

    int insert(UserAuthsVO record);

    int insertSelective(UserAuthsVO record);

    UserAuthsVO selectByPrimaryKey(Long listId);

    int updateByPrimaryKeySelective(UserAuthsVO record);

    int updateByPrimaryKey(UserAuthsVO record);

	Long getUserAuths(String type, String identifier, String credential);

	boolean save(List<UserAuthsVO> authsTagVOs);
	
	UserAuthsVO queryUserByName(String userName);

	Set<String> queryRolesByName(String userName);

	Integer selectByType(String type, String identifier);

	List<UserAuthsVO>  selectByUserId(@Param("userId") Long userId);

	UserAuthsVO selectByUserIdAndType(Long valueOf, String type);

	Long delUserAuthsInfo(Long userId);

}
